package com.common.help.test06;

public class Test {

	public static void main(String[] args) {
		Cat a = Cat.create();
		System.out.println(a.getA());
	}
}
class Animal{
	private int a=5;
	public Animal(){
		System.out.println("fulei");
	}
	public int getA() {
		return a;
	}
	
}
class Cat extends Animal{
	private int a=6; 
	private Cat(){
		System.out.println("zilei");
	}
	public static Cat create(){
		return new Cat();
	}
	public int getA() {
		return a;
	}
	
}